package com.ly.mpayment.persist.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "product_timer")
public class ProductTimer {

    private String id;
    private Date createTime;
    //执行状态 0 未执行 1 已经执行
    private int status;
    private Date executeTime;
    private String createUser;
    private String createUserId;
    private String operator;
    private String province;
    private String busname;
    private String downName;
    private BigDecimal beforeDiscount;
    private BigDecimal afterDiscount;
    private String note;
    //0启用 1禁用
    private boolean enabled;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id", unique = true,nullable=false)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "execute_time")
    public Date getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Date executeTime) {
        this.executeTime = executeTime;
    }

    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Column(name = "create_user_id")
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Column(name = "operator")
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Column(name = "busname")
    public String getBusname() {
        return busname;
    }

    public void setBusname(String busname) {
        this.busname = busname;
    }

    @Column(name = "down_name")
    public String getDownName() {
        return downName;
    }

    public void setDownName(String downName) {
        this.downName = downName;
    }

    @Column(name = "before_discount")
    public BigDecimal getBeforeDiscount() {
        return beforeDiscount;
    }


    public void setBeforeDiscount(BigDecimal beforeDiscount) {
        this.beforeDiscount = beforeDiscount;
    }

    @Column(name = "after_discount")
    public BigDecimal getAfterDiscount() {
        return afterDiscount;
    }

    public void setAfterDiscount(BigDecimal afterDiscount) {
        this.afterDiscount = afterDiscount;
    }

    @Column(name = "note")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Column(name = "enabled")
    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
